package top.dotgo.model.sys.bean;

import cn.hutool.core.bean.BeanUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import top.dotgo.model.IBaseBean;
import top.dotgo.model.sys.OauthClientDetailsEntity;

import java.io.Serializable;

/**
 * (OauthClientDetails)对象bean
 *
 * @author jornl
 * @date 2020-04-15 10:21:18
 */
@Getter
@Setter
@Accessors(chain = true)
public class OauthClientDetailsBean extends OauthClientDetailsEntity implements IBaseBean, Serializable {

    public static OauthClientDetailsBean bean(OauthClientDetailsEntity entity) {
        OauthClientDetailsBean bean = new OauthClientDetailsBean();
        BeanUtil.copyProperties(entity, bean);
        return bean;
    }

    @Override
    public OauthClientDetailsEntity entity() {
        OauthClientDetailsEntity entity = new OauthClientDetailsEntity();
        BeanUtil.copyProperties(this, entity);
        return entity;
    }


}
